package com.cskaoyan.javase.oop3._3inner._3loacl._2usecase;

/**
 * Java使用成员内部类，完全可以实现真正意义上的多继承
 *
 * @since 11:38
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
    class ASon extends A {
    }

    class BSon extends B {
    }

    class CSon extends C {
    }

    class DSon extends D {
    }

    class ESon extends E {
    }

    class FSon extends F {
    }

    public void test(){
        ASon aSon = new ASon();
        BSon bSon = new BSon();
        aSon.test();
        bSon.test1();
    }
}

class A {
    public void test() {
    }
}

class B {
    public void test1() {
    }
}

class C {
    public void test3() {
    }
}

class D {
    public void test4() {
    }
}

class E {
    public void test5() {
    }
}

class F {
    public void test6() {
    }
}
